package com.etc.common;

import org.apache.shiro.authz.UnauthorizedException;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;

@ControllerAdvice
public class MyOAExceptionHandle {
    @ResponseBody
    @ExceptionHandler(value = UnauthorizedException.class)
    public String errorHandler(Exception ex) {
        return "meiyouquanxian";
    }
}
